import { createBrowserRouter } from 'react-router-dom'
import App from '../App'
import Home from '../pages/Home'
import Order from '../pages/Order'
import User from '../pages/User'
import My from '../pages/My'
import City from '../pages/City'
import Login from '../pages/Login'


let router = createBrowserRouter([
    {
        path: '/',
        element: <App></App>,
        children: [
            {
                index: true,
                element: <Home></Home>
            },
            {
                path: 'home',
                element: <Home></Home>
            },
            {
                path: 'order',
                element: <Order></Order>
            },
            {
                path: 'user',
                element: <User></User>
            },
            {
                path: 'my',
                element: <My></My>
            },
        ]
    },
    {
        path: 'city',
        element: <City></City>
    },
    {
        path: 'login',
        element: <Login></Login>
    },
])
export default router